.TH E1432_SET_TRIGGER_SLOPE 3 E1432
.SH NAME
.nf
e1432_set_trigger_slope \- Set slope of trigger
e1432_get_trigger_slope \- Get current slope of trigger
.fi
.IX e1432_set_trigger_slope(3) 3
.IX e1432_get_trigger_slope(3) 3
.SH SYNOPSIS
.cS
SHORTSIZ16 e1432_set_trigger_slope(E1432ID hw, SHORTSIZ16 ID,
                                   SHORTSIZ16 slope)
SHORTSIZ16 e1432_get_trigger_slope(E1432ID hw, SHORTSIZ16 ID,
                                   SHORTSIZ16 *slope)
.cE
.SH DESCRIPTION

\fIe1432_set_trigger_slope\fR sets the trigger slope, of a single
channel or group of channels \fIID\fR, to the value given in
\fIslope\fR.

\fIe1432_get_trigger_slope\fR returns the current value of the slope,
of a single channel or group of channels \fIID\fR, into a memory
location pointed to by \fIslope\fR.

\fIhw\fR must be the result of a successful call to
\fIe1432_assign_channel_numbers\fR, and specifies the group of
hardware to talk to.

\fIID\fR is either the ID of a group of channels that was obtained with a
call to \fIe1432_create_channel_group\fR, or the ID of a single channel.

\fIslope\fR selects the edge of the trigger source (i.e. the
direction) on which the trigger occurs.  \fBE1432_TRIGGER_SLOPE_POS\fR
sets it to a positive going crossing of the level.
\fBE1432_TRIGGER_SLOPE_NEG\fR sets it to a negative going crossing of the
level.  This parameter may also be set with \fIe1432_set_trigger\fR.
If the trigger mode (see \fIe1432_set_trigger_mode\fR) is bound,
positive is synonymous of exiting the zone defined by the two trigger
levels, and negative is synonymous of entering it.

This function does not apply to source channels, since the concept of
a trigger slope makes no sense for a source channel.
.SH "RESET VALUE"
After a reset, \fIslope\fR is set to \fBE1432_TRIGGER_SLOPE_POS\fR.
.SH "RETURN VALUE"
Return 0 if successful, a (negative) error number otherwise.
.SH "SEE ALSO"
.na
e1432_set_trigger, e1432_set_trigger_mode
.ad
